package com.boyinet.imesh2json.common

/**
 * @author lengchunyun
 */
class ExtendedAttributes {
    /**
     * 信号状态
     */
    var signalStrength: Item? = null

    /**
     * 供电来源
     */
    var powerSource: Item? = null

    /**
     * 供电方式
     */
    var powerSupply: Item? = null

    /**
     * 电池电量
     */
    var batteryPower: Item? = null

    /**
     * 报警状态
     */
    var alarmStatus: Item? = null

    override fun toString(): String {
        return "ExtendedAttributes(signalStrength=$signalStrength, powerSource=$powerSource, " +
                "powerSupply=$powerSupply, batteryPower=$batteryPower, alarmStatus=$alarmStatus)"
    }


    class Item {
        var code: String? = null
        var value: String? = null

        override fun toString(): String {
            return "Item(code=$code, value=$value)"
        }

    }
}